From 217ac00a87781d9e0b74e85479e256b59c1810ac Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Fri, 14 Feb 2025 12:06:30 +0100
Subject: frontend: Bind PageView to form input instead of Comic

Commit dc4db40 (frontend: Migrate to Svelte 5, 2025-02-13) accidentally
regressed reader behaviour where updates to the page layout and page
direction where no longer shown immediately. Make sure to bind PageView
to the comic form input to fix this.
---
 frontend/src/routes/comics/[id]/+page.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/src/routes/comics/[id]/+page.svelte')

diff --git a/frontend/src/routes/comics/[id]/+page.svelte b/frontend/src/routes/comics/[id]/+page.svelte
index 48c588f..abe3798 100644
--- a/frontend/src/routes/comics/[id]/+page.svelte
+++ b/frontend/src/routes/comics/[id]/+page.svelte
@@ -147,7 +147,7 @@
 	</Grid>
 
 	<Reader>
-		<PageView layout={comic.layout} direction={comic.direction} />
+		<PageView layout={input.layout} direction={input.direction} />
 		{#snippet sidebar()}
 			{#if input}
 				<ComicForm bind:input {submit}>
-- 
cgit v1.2.3-2-gb3c3

